package com.example.webviewtest;

import android.content.Context;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

public class JsFunction {
    Context context;

    public JsFunction(Context context) {
        this.context = context;
    }

    @JavascriptInterface
    public void hello(String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();




    }
}
